<?php
/*
 * @thinkphp3.2.2  auth认证   php5.3以上
 * @Created on 2015/08/18
 * @Author  夏日不热(老屁)   757891022@qq.com
 *
 */
namespace Admin\Controller;
use Common\Controller\AuthController;
use Think\Auth;

//后台管理员
class ConfigController extends AuthController {
	
	//用户列表
     public function config_index(){
    	
		if(!empty($_POST)){
			$m = M('config');
			$result = $m->save($_POST);
			if($result){
				$this->success('编辑成功');
			}else{
				$this->error('编辑失败');
			}
		}else{
			$this->display();
		}

    }

}




